﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GurLoader.Screenshot;
using NUnit.Framework;

namespace GurLoaderWPF.Test.Screenshot
{
    [TestFixture]
    public class ScreenshotCaptureTests
    {
        [Test]
        public void GetScreenCaptureTest()
        {
            ScreenshotCapture sc = new ScreenshotCapture();
            
            Rectangle rect = new Rectangle(0, 0, 20, 20);
            Point start = new Point(0, 0);
            Point end = new Point(20,20);

            Image img = sc.CaptureImage(start, end, rect);

            Assert.IsNotNull(img);
            Assert.AreEqual(20, img.Height);
            Assert.AreEqual(20, img.Width);
        }
    }
}
